package com.hdu.autoPageInterceptor;

public class Page {

    /**
     * 总数量
     */
    private int total;
    /**
     * 每页大小
     */
    private int size;
    /**
     * 页码 从 1 开始
     */
    private int index;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getOffset() {
        return (index - 1) * size;
    }
}
